package _15_generics._15_2._15_2_1;

import net.mindview.util.ThreeTuple;
import net.mindview.util.TwoTuple;

/**
 * 元组对象，可以将一组不同的对象返回
 */
public class TupleTest {
    static TwoTuple<String,Integer> two(){
        return new TwoTuple<String, Integer>("hi",47);
    }
    static ThreeTuple<Amphibian,String,Integer> three(){
        return new ThreeTuple<Amphibian, String, Integer>(new Amphibian(),"hi",47);
    }
}

class Amphibian{}
